package mapper;

import entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ServiceMapper {
    List<Service> selectByMap(Map<String, Object> params);

    int insert(Service service);

    int udpate(Service service);

    int batchDelete(Integer[] ids);

    List<Service> selectWithCustomer();

    Service selectById(Integer id);

    List<Service> selectUserAccount();

    int insertWithHandler(Service_Transfer service_transfer);

    int updateByNewanagerId(@Param("new_manager_id") Integer new_manager_id, @Param("service_id") Integer service_id);

    Users selectByUserId(Integer id);

    Customer selectByCustomerId(Integer id);

    List<CustomerCare> customerCareList(Map<String, Object> params);

    Service selectByServiceId(Integer id);

    List<Service> selectWithCustomerName();

    Service selectByHandler(Integer handler);

    Service selectCustomer_id(Integer customer_id);

    int handleService(Service service);

    Service selectByServiceIdWithCustomerId(Integer id);

    List<Service_Transfer> selectServiceTransfer(Integer id);
}
